<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            /* position: relative; */
            display: inline-block;
            margin: 20px;
            left: 0;
            top: 0;
        }
        .item{
            margin: 40px;
        }
    </style>
</head>
<body>
    <div class="">1
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item">5</div>
        <div class="item">6</div>
    </div>
    <div class="box">4
        <div>2</div>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
    <script>
        var items = jQuery(".item");
        for (let i = 0; i < items.length; i++) {
            var item = items[i];
            item.addEventListener('click', function(){
                this.textContent +="1";
            }, false)
        }
        console.log(item);
    </script>
</body>
</html>